package com.project.server.domain.companies;

import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import com.project.server.domain.estates.TPayRule;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 企业信息对象 t_company
 *
 * @author project
 * @date 2021-07-01
 */
public class TCompany extends BaseEntity {

    private static final long serialVersionUID = 8959195306819903176L;

    /**
     * 企业编号
     */
    private Long compId;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称")
    private String compName;

    /**
     * 企业类型（00国有 01私营 02独资 03合资）
     */
    @Excel(name = "企业类型", readConverterExp = "00=国有,01=私营,02=独资,03=合资")
    private String compType;

    /**
     * 缴费规则
     */
    private Long ruleId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 缴费规则对象
     */
    @Excel(name = "物业服务类型", targetAttr = "ruleName", type = Excel.Type.EXPORT)
    private TPayRule payRule;

    /**
     * 缴费规则组
     */
    private  Long[] ruleIds;

    public void setCompId(Long compId) {
        this.compId = compId;
    }

    public Long getCompId() {
        return compId;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompType(String compType) {
        this.compType = compType;
    }

    public String getCompType() {
        return compType;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public TPayRule getPayRule() {
        return payRule;
    }

    public void setPayRule(TPayRule payRule) {
        this.payRule = payRule;
    }

    public Long[] getRuleIds() {
        return ruleIds;
    }

    public void setRuleIds(Long[] ruleIds) {
        this.ruleIds = ruleIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("compId", getCompId())
                .append("compName", getCompName())
                .append("compType", getCompType())
                .append("ruleId", getRuleId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("payRule",getPayRule())
                .toString();
    }
}
